package com.bingfor.easycablelink.home.Fragment;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.bingfor.easycablelink.R;
import com.bingfor.easycablelink.databinding.IoreInfoItemBinding;
import com.bingfor.easycablelink.widgets.MyListView;

/**
 * Created by LY on 2017/5/25.
 */

public class MyAdapter extends BaseAdapter {


    public MyAdapter() {
    }

    public MyAdapter(Context context) {

    }

    @Override
    public int getCount() {
        return 4;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }


    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        //加载布局为一个视图
      return   IoreInfoItemBinding
                        .inflate(LayoutInflater.from(parent.getContext()), parent, false)
                        .getRoot();
    }

}
